<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>慢慢买在线商城</title>
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./lib/fontawesome/css/font-awesome.css">
  <link rel="stylesheet" href="./css/zyp_productlist.css">
</head>

<body>
  <!-- 头部内容 -->
  @@include('YSY_header.html')
  <!-- 搜索框 -->
  @@include('YSY_search.html')
  <!-- 主要内容部分 -->
  <div class="zyp_main">
    <!-- 这个是顶部的逐级导航 -->
    <div class="nav_bar">
      <ul class="nav">
        <li><a href="YSY_index.html">首页&nbsp;&gt;</a></li>
        <li><a href="zyp_getcategorytitle.html">分类大全&nbsp;&gt;</a></li>
        <li class="listName"><a href="javascript:;">
            <!-- 这里的名称由js动态获取 -->
          </a></li>
      </ul>
      <button type="button" class="choose">筛选</button>
    </div>
    <!-- 这里是商品列表内容 -->
    <div class="content">
      <ul class="goodsList">
        <!-- 这里使用模板引擎渲染 -->
      </ul>
    </div>
    <!-- 这个是底部的分页器 -->
    @@include("zyp_paging.html")
  </div>
  <!-- 这里是模板引擎 -->
  <script type='text/html' id='goodsListTemp'>
    {{each goodsArr item index}}
    <li>
        <a class="goodsImg" href="zyp_getproduct.html?productId={{item.productId}}">
          <div class="intro">
            <div class="text mui-ellipsis-2">{{item.productName}}</div>
            <div class="price">{{item.productPrice}}</div>
            <div class="other">
              <span>{{item.productQuote}}</span>
              <span>{{item.productCom}}</span>
            </div>
          </div>
        </a>
      </li>
    {{/each}}
  </script>
</body>
<script src="./lib/mui/js/mui.js"></script>
<script src="./lib/zepto/zepto.js"></script>
<script src="./lib/arttemplate/template-web.js"></script>
<script src="./js/common.js"></script>
<script src="./js/zyp_productlist.js"></script>

</html>